﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using SGLisp;
using GameUnit;
public class StarParty : Game  
{

    protected override void OnLoad()
    {
        RT.InitRuntime();

        ExcelTableRender.SetTablePath("Table/Excel/");
        Game.UI.Init(ExcelTableRender.GetTable("UIWidgets"), ExcelTableRender.GetTable("UILayers"));
        LoadConfig();
        Scene.LoadScene<GameHallScene>();
    }

    void LoadConfig()
    {
        MapTableMgr.LoadFromFile(ConfigPath() + "/Map", RT.MainContext);
        ActorManager.Load(Game.ConfigPath() + "/Actors.clj");
        UnitManager.Load(Game.ConfigPath());
        WeaponManager.Load(Game.ConfigPath() + "/Weapon.clj");
        BehaviorManager.Load(Game.ConfigPath() + "/Behaviors.clj");
        EffectManager.Load(Game.ConfigPath() + "/Effects.clj");
        LispTableManager.Load(Game.ConfigPath());
    }

  
}
